package service;

import java.util.List;
import java.util.Set;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import mapper.SysPermissionMapper;
import model.SysPermission;

@Service
public class SysService {

	@Autowired
	private SysPermissionMapper sysPermissionMapper;
	
	public List<SysPermission> findMenuListByUserId(String userId) {
		return sysPermissionMapper.findMenuListByUserId(userId);
	}
	
	public Set<String> findPercode(String userId) {
		return sysPermissionMapper.findPercode(userId);
	}
	
}
